
	<div class="row">
	<div class="panel callout">
		<h6>Add Room</h6>
	</div>
	<?if(isset($system_message))echo $system_message;?>
	<?php 
		$formAttrib = array('id' => 'addroom', 'class' => 'admin-form');
		$roomLevelAttrib = array('' => 'Select level assignment..');
		$sectionLevelAttrib = array('' => 'Select section assignment..');
		$roomNameAttrib = array('name' => 'name', 'value' => set_value('name'), 'id' => 'name');
		$roomMaxAtrib = array('name' => 'max_students', 'value' => set_value('max_students'), 'id' => 'max_students');
		$roomDescriptionAttrib = array('name' => 'description', set_value("description"), 'id' => 'description');
		echo form_open('rss-add-room', $formAttrib);
		
		if(!empty($sections))
		{
			foreach($sections as $s)
			{
				$sectionLevelAttrib[$s->section_id] = $s->section_name.' | '.$s->level_desc;
			}
		}else{
			$sectionLevelAttrib[''] = 'NO sections have been set';
		}
	?>
   
	<div class="input-block">
		<?php echo form_label('Section Assignment :', 'code');?>
		<?php echo form_dropdown('section_id', $sectionLevelAttrib, set_value('section_id')); ?>
	</div>
	
    <div class="input-block">
    <?php
		echo form_label('Name :', 'name');
		echo form_input($roomNameAttrib);		
	?>
    </div>
    
	<div class="input-block">
    <?php
		echo form_label('Description :', 'description');
		echo form_textarea($roomDescriptionAttrib);	
	?>
    </div>
   
    <div class="input-block" style="clear:both;">
		<?php echo form_submit('add', 'Add','class="btn btn-small btn-primary"'); ?>
		<a href="<?=site_url('rss-rooms');?>" class="btn">Back to Rooms</a>
	</div>
	</form>
</div>